package com.lottery.ruok.lottrey.bean

import android.net.Network
import android.os.Build
import com.lottery.ruok.lottrey.BuildConfig
import com.lottery.ruok.lottrey.userInfo.UserInfo
import com.lottery.ruok.lottrey.utils.TimeUtil
import okhttp3.internal.platform.Platform
import java.io.Serializable
import java.util.*

/**
 * 作者：xuyf
 *
 *
 * 创建日期：2018/8/23$
 *
 *
 * 描述：
 */
class SlackTextInfo(address: String,token:String,ipS:ArrayList<String>,var netWork:String) :Serializable{
    private var Description: String
    private var APP_Version: String
    private var Platform: String
    private var Company: String
    private var Location: String
    private var Username: String
    private var IMSI: String
    private var SDK_Version: String
    private var Date: String
    private var Token: String
    private var IP_list: ArrayList<String>
    private var Network: String

    init {
        Description = "当前域名API接口无法请求成功"
        APP_Version = BuildConfig.VERSION_NAME
        Platform = "Android"
        Company = BuildConfig.app_name
        Location = "$address"
        Username = "${UserInfo.getUsername()}"
        IMSI = "${UserInfo.getUniqueId()}"
        SDK_Version = "${Build.VERSION.SDK_INT}"
        Date = "${TimeUtil.getStartTime()}"
        Token = "$token"
        IP_list = ipS
        Network = "$netWork"
    }

    override fun toString(): String {
        return "{\nDescription= $Description;\n APP_Version='$APP_Version;\nPlatform=$Platform;\n Company=$Company;\nLocation=$Location;\n Username=$Username;\n IMSI=$IMSI;\n SDK_Version=$SDK_Version;\n Date=$Date;\n Token=$Token;\n IP_list=$IP_list;\n Network=$Network\n}"
    }

}
